package com.tbit.uqbike.service.business.brand.ctx;

/**
 * @author <a href="mailto:zheng.zebiao@tbit.com.cn">zb</a>
 * @since 2024/7/19
 */
public class ValidateContextHolder {
    private static final ThreadLocal<BrandConfigContext> ctxThreadLocal = ThreadLocal.withInitial(BrandConfigContext::new);

    public static BrandConfigContext get() {
        return ctxThreadLocal.get();
    }

    public static void set(BrandConfigContext ctx) {
        ctxThreadLocal.set(ctx);
    }

    public static void remove() {
        ctxThreadLocal.remove();
    }
}
